package com.lantosec.hmrp.modules.archives.mapper;

import com.lantosec.hmrp.modules.archives.entity.UserAvocation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lantosec.hmrp.modules.archives.vo.UserAvocationCompanyVO;
import com.lantosec.hmrp.modules.archives.vo.UserAvocationParttimeVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 领导干部从事或参与营利性活动及兼职情况报告表。 Mapper 接口
 * </p>
 *
 * @author AutoCode
 * @since 2020-06-11
 */
public interface UserAvocationMapper extends BaseMapper<UserAvocation> {

    /**
     * 查询个人经办企业信息
     * @param userAvocationId
     * @return
     */
    List<UserAvocationCompanyVO> getUserAvocationCompany(String userAvocationId);

    /**
     * 查询事业单位、社会团体兼职情况
     * @param userAvocationId
     * @return
     */
    List<UserAvocationParttimeVO> getUserAvocationParttime(String userAvocationId);

    /**
     * 新增个人经办企业信息
     * @param userAvocationCompanyVO
     */
    void saveUserAvocationCompany(@Param("userAvocationCompanyVO") UserAvocationCompanyVO userAvocationCompanyVO);

    /**
     * 新增事业单位、社会团体兼职情况
     * @param userAvocationParttimeVO
     */
    void saveUserAvocationParttime(@Param("userAvocationParttimeVO") UserAvocationParttimeVO userAvocationParttimeVO);

    /**
     * 删除个人经办企业信息
     * @param userAvocationId
     */
    void deleteUserAvocationCompany(String userAvocationId);

    /**
     * 删除事业单位、社会团体兼职情况
     * @param userAvocationId
     */
    void deleteUserAvocationParttime(String userAvocationId);
}
